package com.glodon.paas.document.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.glodon.paas.document.dao.domain.ProjectInfoEntity;

/**
 * @author admin
 */
public interface ProjectDao extends DBDao<ProjectInfoEntity, String> {

    static Logger logger = LoggerFactory.getLogger(ProjectDao.class);

    List<ProjectInfoEntity> getProjects(List<String> ids);

    int updateProject(ProjectInfoEntity project);

    List<ProjectInfoEntity> getProjects(String ownerId);

    ProjectInfoEntity getProjectByName(String ownerId, String name);

}
